//
//  MenuView.h
//  JKSideSlipView
//
//  Created by Jakey on 15/1/10.
//  Copyright (c) 2015年 www.skyfox.org. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "P004ParentTableView.h"
@protocol P004MenuViewDelegate;
typedef void (^didSelectRowAtIndexPath)(id cell, NSIndexPath *indexPath);

@interface P004MenuView : UIView<UITableViewDelegate,UITableViewDataSource,SubTableViewDelegate, SubTableViewDataSource>
{
    didSelectRowAtIndexPath _didSelectRowAtIndexPath;
    NSMutableArray *subArray;
    NSMutableArray *parentArray;
    NSMutableArray *subIconArray;
}
+(instancetype)menuView;
@property(nonatomic,weak) id<P004MenuViewDelegate> delegate;
@property (weak, nonatomic) IBOutlet P004ParentTableView *myTableView;
@property (nonatomic, strong) NSArray *items;
@property (nonatomic, strong) NSArray *contentArray;
-(void)didSelectRowAtIndexPath:(void (^)(id cell, NSIndexPath *indexPath))didSelectRowAtIndexPath;
@end
@protocol P004MenuViewDelegate <NSObject>
@optional
-(void)menuViewHomeBtnClick;

-(void)menuViewConfirmCancelClick;
- (void) didSelectCellAtChildIndex:(NSInteger)childIndex withInParentCellIndex:(NSInteger)parentIndex;
-(void)subTableviwAddOrSubtractClickAtHome;
@end